#include<iostream>
#include<vector>
#include<memory>
using namespace std;
int main()
{
    int* a = new int(42),*b = new int(100);
    a = b;
    auto q2 = make_shared<int>(42), r2 = make_shared<int>(100);
    q2 = r2;
    
    cout<<"a is: "<<*a<<endl;
    cout<<"b is: "<<*b<<endl;

    cout<<"q2 is: "<<*q2<<endl;
    cout<<"r2 is: "<<*r2<<endl;
    
    
}